from flask import Flask
from service import testcase_service, task_service
from flask_cors import CORS

# 实例化应用
app = Flask(__name__)
CORS(app)


# 注册蓝图
app.register_blueprint(testcase_service.testcase_bp)
app.register_blueprint(task_service.task_bp)


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5001, debug=True)